<?php
namespace addons\travel\model;

use think\Model;

/**
 * 服务标签模型
 */
class Service extends Model
{

    // 表名,不含前缀
    protected $name = 'travel_service';
    protected $hidden = ['createtime', 'updatetime'];
    // 追加属性
    protected $append = [
    ];

    public function getImageAttr($value, $data)
    {
        if (!empty($value)) return cdnurl($value, true);
    }

}
